package com.qishenyuan.competition.vo;

import com.qishenyuan.competition.model.Resume;
import lombok.Data;

/**
 * @author Jacky
 * @since 2025-04-05
 */
@Data
public class ResumeResp {

    private Integer id;

    private String title;

    private Integer views;

    private Integer downloadNumber;

    private String resumeUrl;

    private Integer tag;

    public static ResumeResp buildVo(Resume resume){
        ResumeResp resp = new ResumeResp();
        resp.setId(resume.getId());
        resp.setTitle(resume.getTitle());
        resp.setViews(resume.getViews());
        resp.setDownloadNumber(resume.getDownloadNumber());
        resp.setTag(resume.getTag());
        return resp;
    }
}
